const db = require('../db');
const User = require('./User');

let Photo = db.defineModel('photos', {
    path: db.STRING(200),
    like: db.BIGINT
});
Photo.belongsTo(User, {foreignKey: 'userId'});

module.exports = Photo;